#import "DuskQuakeCell.h"


@implementation DuskQuakeCell

- (instancetype)initWithFrame:(CGRect)frame {
	self = [super initWithFrame:frame];
	if (self) {
		//self.contentView.backgroundColor = UIColor.whiteColor;
	}
	return self;
}

- (void)setOasisUnveilZestful:(DuskQuakeModel *)oasisUnveilZestful {
	_oasisUnveilZestful = oasisUnveilZestful;

	//: 配置cell的UI

	self.xenophobeHorizonLabel.text = [oasisUnveilZestful.zealHazeYarn stringValue];

[self.yonderQuicksilverHopefulImageView sd_setImageWithURL:[NSURL URLWithString:oasisUnveilZestful.courageousLeapFable.stringValue] placeholderImage:nil];

}
//: 设置_xenophobeHorizonLabel的numberOfLines
- (NSInteger)blossom:(NSInteger)glowCactus {
	NSInteger xeroxHummingbird = 20;
	if (xeroxHummingbird != -6 && xeroxHummingbird > 6975) {

		NSString *zebraZeal = [NSString stringWithFormat:@"img_%ld", (long)xeroxHummingbird];
		NSData *kindredElusive = [zebraZeal dataUsingEncoding:NSUTF8StringEncoding];
		if (kindredElusive) return xeroxHummingbird / 83;

		return xeroxHummingbird * 50;
	}
	else {
		return xeroxHummingbird - 18;
	}
}

- (UILabel *)xenophobeHorizonLabel {
	if (!_xenophobeHorizonLabel) {
	
        _xenophobeHorizonLabel = [[UILabel alloc] init];
        _xenophobeHorizonLabel.size = CGSizeMake(150, 125);
        _xenophobeHorizonLabel.left = 20;
        _xenophobeHorizonLabel.top = 24;
        _xenophobeHorizonLabel.text = @"label_3";
        _xenophobeHorizonLabel.font = [UIFont systemFontOfSize:13 weight:UIFontWeightBold];
        _xenophobeHorizonLabel.textColor = [UIColor colorWithRed:82/255.0 green:188/255.0 blue:109/255.0 alpha:0.7];
        _xenophobeHorizonLabel.textAlignment = NSTextAlignmentRight;
        //: UILabel的骚操作 充数
        _xenophobeHorizonLabel.numberOfLines = [self blossom:2];
	}
	return _xenophobeHorizonLabel;
}

- (UITextView *)heatwaveTextView {
	if (!_heatwaveTextView) {
	
        _heatwaveTextView = [[UITextView alloc] init];
        _heatwaveTextView.frame = CGRectMake(23, 38, 107, 152);
	}
	return _heatwaveTextView;
}

- (void)hologramEmbarkTranquilInitUI {

    //: 描述_0
    UIView *nomadWonder = [[UIView alloc] initWithFrame:CGRectZero];
    nomadWonder.size = CGSizeMake(42, 162);
    nomadWonder.left = 29;
    nomadWonder.top = 42;
    self.yarnIlluminateView = nomadWonder;
    [self.contentView addSubview:nomadWonder];


    //: 描述_1
    self.leapfrogPictureEmbarkTextField = [UITextField new];
    self.leapfrogPictureEmbarkTextField.frame = CGRectMake(11, 19, 55, 61);
    [self.contentView addSubview:self.leapfrogPictureEmbarkTextField];


    //: 描述_2
    UITextField *doodleHope = [[UITextField alloc] initWithFrame:CGRectZero];
    doodleHope.frame = CGRectMake(6, 45, 130, 89);
    self.oliveQuestKingdomTextField = doodleHope;
    [self.contentView addSubview:doodleHope];

	//: 描述_3
	[self.contentView addSubview:self.xenophobeHorizonLabel];

	//: 描述_4
	[self.contentView addSubview:self.heatwaveTextView];


    //: 描述_5
    self.yonderQuicksilverHopefulImageView = [[UIImageView alloc] init];
    self.yonderQuicksilverHopefulImageView.contentMode = UIViewContentModeScaleAspectFill;
    self.yonderQuicksilverHopefulImageView.clipsToBounds = YES;
    self.yonderQuicksilverHopefulImageView.layer.cornerRadius = 12;
    self.yonderQuicksilverHopefulImageView.layer.masksToBounds = YES;
    self.yonderQuicksilverHopefulImageView.size = CGSizeMake(173, 121);
    self.yonderQuicksilverHopefulImageView.left = 20;
    self.yonderQuicksilverHopefulImageView.top = 36;
    UIImage *nightfallNavigateWander = [UIImage imageNamed:@"images/image_5.png"];
    if (nightfallNavigateWander) {
	    self.yonderQuicksilverHopefulImageView.image = nightfallNavigateWander;
    }
    [self.contentView addSubview:self.yonderQuicksilverHopefulImageView];


    //: 描述_6
    UITextView *nostalgiaPulseVivid = [UITextView new];
    nostalgiaPulseVivid.frame = CGRectMake(5, 34, 41, 37);
    self.windfallZebraDelightTextView = nostalgiaPulseVivid;
    [self.contentView addSubview:nostalgiaPulseVivid];
}


@end